<div class="modal" tabindex="-1" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog"  style=" width: 1200px;">
        <div class="modal-content">
            <form name="userForm" novalidate>
                <div class="modal-header">
                    <button type="button" class="close" ng-click="close(false)" data-dismiss="modal"
                            aria-hidden="true">&times;</button>
                    <h4 style="font-size: large" class="modal-title">&nbsp;气票查询&nbsp;</h4>
                </div>

                <div style="margin-top: -10px" class="modal-body">
                    <div class="panel-body">
                        <div class="row">
                            <label style="color: red; margin-bottom: 10px" class="pull-right">*若气票存在错误，请删除再重新增加</label>
                        </div>
                        <div class="row">
                            <table class="table table-bordered table-hover .table-condensed">
                                <thead>
                                <tr>
                                    <td style="background: lightblue;text-align: center" width="5%">序号</td>
                                    <td style="background: lightblue;text-align: center" width="5%">客户编号</td>
                                    <td style="background: lightblue;text-align: center" width="10%">销售员工ID</td>
                                    <td style="background: lightblue;text-align: center" width="20%">气票编号</td>
                                    <td style="background: lightblue;text-align: center" width="5%">气票规格</td>
                                    <td style="background: lightblue;text-align: center" width="10%">使用状态</td>
                                    <td style="background: lightblue;text-align: center" width="10%">使用时间</td>
                                    <td style="background: lightblue;text-align: center" width="10%">有效期起始</td>
                                    <td style="background: lightblue;text-align: center" width="10%">有效期结束</td>
                                    <td style="background: lightblue;text-align: center" width="5%">操作</td>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="ticketDetail in vm.currentCustomerTickets">
                                    <td class="message">{{$index+1+pager.pageSize*(pager.getCurPageNo()-1)}}</td>
                                    <td class="message">{{ticketDetail.customer.userId}}</td>
                                    <td class="message">{{ticketDetail.salemanId}}</td>
                                    <td class="message">{{ticketDetail.ticketSn}}</td>
                                    <td class="message">{{ticketDetail.specName}}</td>
                                    <td class="message">{{ticketDetail.ticketStatus.name}}</td>
                                    <td class="message">{{ticketDetail.useTime}}</td>
                                    <td class="message">{{ticketDetail.startDate}}</td>
                                    <td class="message">{{ticketDetail.endDate}}</td>
                                    <td class="operate">
                                        <button title="删除" ng-click="deleteTicket(ticketDetail)" type="button" class="btn btn-primary btn-outline btn-xs">
                                            <i class="fa fa-trash-o"></i>
                                        </button>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div ng-if="vm.currentCustomerTickets.length == 0" nj-table-no-data></div>
                            <div nj-pager pager="pager"></div>

                        </div>
                    </div>
                </div>

            </form>

            <form style="margin-top: -30px" name="userForm" novalidate  >
                <div class="modal-header">
                    <h4 style="font-size: large" class="modal-title">&nbsp;优惠券查询&nbsp;</h4>
                </div>

                <div style="margin-top: -10px" class="modal-body">
                    <div class="panel-body">
                        <div class="row">
                            <label style="color: red; margin-bottom: 10px" class="pull-right">*若优惠券存在错误，请删除再重新增加</label>
                        </div>
                        <div class="row">
                            <table class="table table-bordered table-hover .table-condensed">
                                <thead>
                                <tr>
                                    <td style="background: lightblue;text-align: center" width="5%">序号</td>
                                    <td style="background: lightblue;text-align: center" width="10%">客户编号</td>
                                    <td style="background: lightblue;text-align: center" width="10%">办理人编号</td>
                                    <td style="background: lightblue;text-align: center" width="10%">优惠券编号</td>
                                    <td style="background: lightblue;text-align: center" width="10%">优惠券规格</td>
                                    <td style="background: lightblue;text-align: center" width="10%">使用状态</td>
                                    <td style="background: lightblue;text-align: center" width="10%">使用时间</td>
                                    <td style="background: lightblue;text-align: center" width="10%">有效期起始</td>
                                    <td style="background: lightblue;text-align: center" width="10%">有效期结束</td>
                                    <td style="background: lightblue;text-align: center" width="5%">操作</td>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="couponDetail in vm.currentCustomerCoupons">
                                    <td class="message">{{$index+1 + pagerCoupon.pageSize*(pagerCoupon.getCurPageNo()-1)}}</td>
                                    <td class="message">{{couponDetail.customer.userId}}</td>
                                    <td class="message">{{couponDetail.operator.userId}}</td>
                                    <td class="message">{{couponDetail.couponSn}}</td>
                                    <td class="message">{{couponDetail.specName}}</td>
                                    <td class="message">{{couponDetail.couponStatus.name}}</td>
                                    <td class="message">{{couponDetail.useTime}}</td>
                                    <td class="message">{{couponDetail.startDate}}</td>
                                    <td class="message">{{couponDetail.endDate}}</td>
                                    <td class="operate">
                                        <button title="删除" ng-click="deleteCoupons(couponDetail)" type="button" class="btn btn-primary btn-outline btn-xs">
                                            <i class="fa fa-trash-o"></i>
                                        </button>
                                        <!--<button title="修改" ng-click="editTicket(ticketDetail)" type="button" class="btn btn-primary btn-outline btn-xs">-->
                                        <!--<i class="fa fa-edit"></i>-->
                                        <!--</button>-->
                                    </td>
                                </tr>
                                </tbody>
                            </table>

                            <div ng-if="vm.currentCustomerCoupons.length == 0" nj-table-no-data></div>
                            <div nj-pager pager="pagerCoupon"></div>
                        </div>
                    </div>
                </div>

                <div class="modal-footer">
                    <button type="button" ng-click="close(false)" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </form>
        </div>
    </div>
</div>